<!DOCTYPE html>
<html>
  <head>
    <title>SVG</title>
  </head>
  <body>
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<script>
document.addEventListener(
'DOMContentLoaded', () => {
  const element = document.getElementById('foo')
   if (element) {
element.fillStyle = 'currentColor'
}
});
</script>
<style >
    polygon { fill: black }

    div {
  color: white;
      font:18px serif;
      height: 100%;
      overflow: auto;
    }
  </style>
</svg>
  </body>
</html>
